home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / wildhearts_stage_dive.swf / scripts / DefineSprite_159 / frame_11 / DoAction.as < prev   
Text File  |  2011-08-19  |  563b  |  19 lines

  1. root = this._parent._parent;
  2. game = root.game;
  3. trace("final scores: p1=" + game.p1scores + ", p2=game.p2scores");
  4. if(game.p1scores >= game.p2scores)
  5. {
  6.    score1_txt.text = game.p1scores;
  7.    win1_txt.text = "Ginger wins!";
  8.    score2_txt.text = game.p2scores;
  9.    win2_txt.text = root.numPlayers != 1 ? "The Devil loses" : "The Devil loses";
  10. }
  11. else
  12. {
  13.    score1_txt.text = game.p2scores;
  14.    win1_txt.text = root.numPlayers != 1 ? "The Devil wins" : "The Devil wins!";
  15.    score2_txt.text = game.p1scores;
  16.    win2_txt.text = "Ginger loses";
  17. }
  18. stop();
  19.